/* 登录 */

import request from '@/utils/request'
import qs from 'qs'


// 登录接口封装
export const login =data=>{
  return request({
    url: '/login',
    method: 'POST',
    data: qs.stringify(data)
  })
}

// 注册接口

export const  regUser = ( data) => {
  return request({
    url: '/reguser',
    method: 'POST',
    data: qs.stringify(data)
  })
}